package main

import (
	"fmt"
	"strings"
)

func main() {
	fmt.Println(strings.Split("strings.go", ".")[1])
	fmt.Println(strings.Split("strings.png", ".")[1])
	fmt.Println(strings.Split("strings.pdf", ".")[1])
	fmt.Println(strings.Contains("strings.go", "go"))
	fmt.Println(strings.Contains("strings.go", "png"))
	fmt.Println(strings.Contains("strings.go", ""))
	fmt.Println(strings.Contains("", ""))
	fmt.Println(strings.Count("strings.go", "g"))
	before1, found1 := strings.CutSuffix("strings.go", ".go")
	before2, after2, found2 := strings.Cut("strings.go", ".")
	fmt.Println(found1, before1)
	fmt.Println(found2, before2, after2)
	index1 := strings.Index("strings.go", "s")
	index2 := strings.Index("strings.go", "ngs")
	index3 := strings.LastIndex("strings.go", "s")
	fmt.Println(index1, index2, index3)
	fmt.Println(strings.ToLower("striNGs.go"))
	fmt.Println(strings.ToUpper("striNGs.go"))
	fmt.Println(strings.Replace("strings.go", ".go", ".py", -1))
	
	str1 := "In this course, we will learn the famous programming language GoLang"
	count := strings.Count(str1, "i")
	index4 := strings.Index(str1, "i")
	fmt.Println(count, index4)
	fmt.Println(strings.Replace("In this course, we will learn the famous programming language GoLang", " ", "", -1))

}